{include file="header.tpl"}

<div id="main">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>

{if !$showimage}
{''|GetSystemInfo}
{/if}

{if $showimage}
<div id="showimage">


<div id="showimage_image">
{if $previmageid}<a href="{'InterPhoto.php'|GetUrl:'id':$previmageid}" title="{$lan_prev}"><img src="{$templateurl}images/prevbutton.gif" align="absmiddle" class="prevbutton"></a>{else}<img src="{$templateurl}images/prev_next_no_button.gif" align="absmiddle" class="prevbutton">{/if}<img src="InterPhoto.image.php?file={$image.path|cat:"/"|cat:$image.imageid|cat:"/"|cat:$image.filename|InterEncode}" align="absmiddle" class="bigimage" />{if $nextimageid}<a href="{'InterPhoto.php'|GetUrl:'id':$nextimageid}" title="{$lan_next}"><img src="{$templateurl}images/nextbutton.gif" align="absmiddle" class="nextbutton"></a>{else}<img src="{$templateurl}images/prev_next_no_button.gif" align="absmiddle" class="prevbutton">{/if}
</div>

<h2>{$image.title|default:$lan_notitle|ShortTitle:72}</h2>
<div id="showimage_info">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>{$image.description|default:$lan_nodescription|html}&nbsp;</td>
<td width="268">
<ul class="imageinfo">
{if !$image.sale}
<li><label>{$lan_download}:</label>
{if $userinfo.allowdownload}
<a href="InterPhoto.download.php?file={$image.keycode|cat:"/"|cat:$image.imageid|InterEncode}"><span class="redb"><u>{$lan_clickfor|cat:$lan_download|cat:$lan_original|cat:$lan_image}</u></span></a></li>
{else}
<a href="javascript:void(0);" onclick="ToggleElm('showimage_download')"><span class="redb"><u>{$lan_clickfor|cat:$lan_download|cat:$lan_original|cat:$lan_image}</u></span></a></li>
<ul id="showimage_download" style="display: none;">
<li><label>{$lan_nopermissiondownload}</label></li>
</ul>
{/if}
{/if}
<li><label>{$lan_imagesize}:</label>{$image.width}&nbsp;&nbsp;<font style="font-weight:normal;">x</font>&nbsp;&nbsp;{$image.height}&nbsp;&nbsp;<font style="font-weight:normal;">({$lan_pixel})</font></li>
<li><label>{$lan_filesize}:</label>{$image.filesize}</li>
<li><label>{$lan_publish|cat:$lan_date}:</label>{$image.created|DisplayDate:'Y-m-d'}&nbsp;&nbsp;<a href="#" onclick="window.open('InterPhoto.exif.php?file={$image.path|cat:"/"|cat:$image.filename|InterEncode}', 'EXIF', 'toolbar=no,status=no,location=no,menubar=no,resizable=no,height=600,width=400,scrollbars=yes'); return false;">{$lan_viewexif}</a></li>
{if $image.price}<li><label>{$lan_image|cat:$lan_price}:</label><span class="redb">{$image.price}</span></li>{/if}
{if $image.url}<li><label>{$lan_linkurl}:</label><a href="{$image.url}" target="_blank">{$image.url|ShortTitle:'24'}</a></li>{/if}
<li><label>{$lan_hits}:</label>{$image.viewcount}<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$lan_downloads}:</label>{$image.downloadcount}</li>
<li><label>{$lan_author}:</label><a href="javascript:void(0);" onclick="ToggleElm('showimage_userinfo')">{$image.username}</a></li>
{if $user.userid}
<ul id="showimage_userinfo" style="display: none;">
<li><label>{$lan_register|cat:$lan_date}:</label>{$user.joindate|DisplayDate:'Y-m-d'}</li>
{if $user.userfullname}<li><label>{$lan_fullname}:</label>{$user.userfullname}</li>{/if}
{if $user.usercompany}<li><label>{$lan_company}:</label>{$user.usercompany}</li>{/if}
{if $user.useraddress}<li><label>{$lan_address}:</label>{$user.useraddress}</li>{/if}
{if $user.userpostcode}<li><label>{$lan_postcode}:</label>{$user.userpostcode}</li>{/if}
{if $user.usertel}<li><label>{$lan_tel}:</label>{$user.usertel}</li>{/if}
{if $user.userfax}<li><label>{$lan_fax}:</label>{$user.userfax}</li>{/if}
{if $user.useronline}<li><label>{$lan_online}:</label>{$user.useronline}</li>{/if}
{if $user.userwebsite}<li><label>{$lan_website}:</label><a href="{$user.userwebsite}" target="_blank">{$user.userwebsite}</a></li>{/if}
</ul>
{/if}
</ul>
</td>
</tr>
</table>
</div>


{if $showimage}
{''|GetSystemInfo}
{/if}

{assign var="commentsnum" value="<span class=orange>"|cat:$totalcomments|cat:"</span>"}

<h3>{$lan_image|cat:$lan_comment}<span class="lightgrey">({$lan_totalcomments|replace:'//1':$commentsnum},&nbsp;&nbsp;<a href="javascript:void(0);" onclick="ToggleElm('showimage_submitcomment')">{$lan_publish|cat:$lan_comment}</a>)</span></h3>
<div id="showimage_comments">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
{if $totalcomments}
{section name=comment loop=$comments}
<div class="author">{$lan_cauthor}: <a href="javascript:void(0);">{$comments[comment].username}</a>{$lan_time}: {$comments[comment].created|DisplayDate}</div>
<div class="number">{math equation="x + y" x=$smarty.section.comment.rownum y=$start}<sup>#</sup></div>
<div class="comment">{$comments[comment].content|nl2br}</div>
{/section}
{$pagelist}
{else}
{$lan_nocomments}
{/if}
</td>

<td width="268">
<div style="float:right;margin-bottom:12px;"><a href="javascript:void(0);" onclick="ToggleElm('showimage_submitcomment')"><span class="orangeb"><u>{$lan_publish|cat:$lan_comment}</u></span></a></div>
<div id="showimage_submitcomment" style="display: none;">
{if $userinfo.allowcomment}
<form action="" method="post">
<input type="hidden" name="id" value="{$image.imageid}" />
<input type="hidden" name="action" value="insertcomment" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>{$lan_cauthor}:&nbsp;</td>
<td>
{if $userinfo.username}
<input type="hidden" name="username" value="{$userinfo.username}" />{$userinfo.username}
{else}
<input name="username" type="text" size="12" maxlength="12" value="{$comment.username}" /> <span class="red">*</span>
{/if}
</td>
</tr>
<tr>
<td colspan="2">{$lan_comment|cat:$lan_content}:&nbsp; <span class="red">*</span></td>
</tr>
<tr>
<td colspan="2"><textarea name="content" style="height:160px;width:220px;margin-bottom:8px;" >{$comment.content}</textarea></td>
</tr>
<tr>
<td colspan="2"><img src="InterPhoto.vvc.php?key={$vvckey}" onclick="ChangeCaptcha(this);" style="cursor:pointer;" title="{$lan_newcaptcha}" width="226px" />
<input type="hidden" name="vvckey" value="{$vvckey}" />
</td>
</tr>
<tr>
<td>{$lan_verifycode}:&nbsp;</td>
<td><input type="text" name="vvc" size="12" /> <span class="red">*</span></td>
</tr>
<tr>
<td colspan="2" align="center"><BR><input type="submit" value=" &nbsp;{$lan_submit}&nbsp; " /></td>
</tr>
</table>
</form>
{else}
<span class="red">{$lan_nopermissioncomment}</span>
{/if}
</div>
</td>
</tr>
</table>
</div>


</div>

{/if}


</td>
</tr>
</table>
</div>


{include file="footer.tpl"}
